set(CORE_LIB "core" CACHE STRING "The name of core library")
file(GLOB CORE_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp")
add_library(${CORE_LIB} STATIC ${CORE_SOURCES})
target_include_directories(${CORE_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")